<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <h:form>
            <br/>
            <h:message for="velgL" errorClass="errors"/>
            <h:dataTable cellspacing="5px" 
                         value="#{rb.db.hentResultatDeltaker()}"
                         var="res" 
                         border="1"
                         styleClass="table"
                         headerClass="tabellerOverskrift"
                         rowClasses="oddColumn, evenColumn"
                         footerClass="tabellerOverskrift"
                         captionClass="overskriftTabell"
                         width="1000">

                <h:column ><!--rendered="#{rb.sjekkBruker()}">-->
                    <f:facet name="header">#{tekster.slett}</f:facet>
                    <h:selectBooleanCheckbox value="#{res.deleted}" onclick="submit()"/>
                </h:column>
                <h:column>
                    <f:facet name="header">#{tekster.tid}</f:facet>
                    <h:outputText value="#{res.tid}"/>
                    <f:facet name="footer">#{rb.ant()}</f:facet>
                </h:column>
                <h:column>
                    <f:facet name="header">#{tekster.startnr}</f:facet>
                    <h:outputText value="#{res.startNr}"/>
                    <f:facet name="footer"></f:facet>
                </h:column>
                <h:column>
                    <f:facet name="header">#{tekster.Lop}</f:facet>
                    <h:outputText value="#{res.lop.lopnavn}"/>
                </h:column>
                <h:column>
                    <f:facet name="header">#{tekster.Distanse}</f:facet>
                    <h:outputText value="#{res.lop.distanse}">
                        <f:convertNumber pattern="0.0"/>
                    </h:outputText>
                </h:column>
                <h:column>
                    <f:facet name="header">#{tekster.Klasse}</f:facet>
                    <h:outputText value="#{res.klasse.alder_inndeling}"/>
                    <h:outputText value="#{res.klasse.kjonn}"/>
                </h:column>
            </h:dataTable>   
            <ui:debug hotkey="i"/>
            <h:commandButton rendered="#{rb.sjekkAdmin()}" value="#{tekster.Lagre}" action="#{rb.save()}"/>
            <h:commandButton value="#{tekster.Tilbake}" action="/index?faces-redirect=true"/>
        </h:form>
    </h:body>
</html>

